package com.myproject.musicrecommendationsystem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 轮播图实体类
 */
@Data
@TableName("carousel")
public class Carousel {
    @TableId(type = IdType.AUTO)
    private Integer id; // 轮播图ID
    private String imageUrl; // 轮播图图片URL
    private String linkUrl; // 轮播图点击链接
    private Integer sortOrder; // 排序
    private Date createTime; // 创建时间
    private Date updateTime; // 更新时间

    public Carousel() {
    }
    public Carousel(int id, String imageUrl, String linkUrl, Integer sortOrder, Date createTime, Date updateTime) {
        this.id = id;
        this.imageUrl = imageUrl;
        this.linkUrl = linkUrl;
        this.sortOrder = sortOrder;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Carousel{" +
                "轮播图id=" + id +
                ", 图片Url='" + imageUrl + '\'' +
                ", 轮播图点击链接='" + linkUrl + '\'' +
                ", 排序=" + sortOrder +
                ", 创建时间=" + createTime +
                ", 修改时间=" + updateTime +
                '}';
    }
}


